package com.ahaoyou.compnent;

import com.ahaoyou.annotation.TableHandler;
import com.ahaoyou.utils.TableOperate;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

@Component
@TableHandler(table = "user", operate = TableOperate.UPDATE)
public class UserUpdateHandler implements ITableHandler {
    @Override
    public void handler(JSONObject newJson, JSONObject oldJson) {
        System.out.println("user表修改中新数据" + newJson);
        System.out.println("user表修改中老数据" + oldJson);
    }
}